//
// Pomme.hpp for nibbler in /home/titouan/Dropbox/Code/nibbler-epitech-2017/inc
//
// Made by Titouan Creach
// Login   <titouan@epitech.net>
//
// Started on  Mon Mar 24 12:52:10 2014 Titouan Creach
// Last update Mon Mar 24 13:21:59 2014 Titouan Creach
//

#ifndef POMME_HPP
#define POMME_HPP

#include <iostream>
#include <deque>
#include "Snake.hpp"
#include "Point.hpp"

class Pomme
{
public:
  Pomme(int w, int h);
  Point getPosition() const;
  Point newPomme(const std::deque<Point> &snakePos);

private:
  bool collision(const std::deque<Point> &snakePos, Point p);
  int _w;
  int _h;
  Point _pos;
};

#endif
